Link | string->encodeBash |
Author | Kyle Jessup |
Category | String |
Version | 9.x |
License | Public Domain |
Posted | 29 Jan 2014 |
Updated | 29 Jan 2014 |
More by this author... |
Returns the string encoded such that it can be given to bash as a literal command line argument. Note that you won't need this for arguments by default if you are using sys_process.
local(s = 'jdf""s%&$v d') #s->encodeBash Result: "jdf\"\"s%&\$v\ d"
Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
define string->encodeBash() => '"'+regexp('([\\$`"\\\n])', `\\$1`, self)->replaceAll+'"'
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft